package com.zerox.mapper;

import com.zerox.pojo.sysRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SysRoleMapper {

    List<sysRole> list(@Param("page") Integer page, @Param("limit") Integer limit);

    sysRole selectByrole_id(Integer role_id);
    @Update("UPDATE `sys_role` SET `role_name` = #{role_name}, `role_key` = #{role_key}, `role_sort` = #{role_sort} WHERE `role_id` = #{role_id}")
    int update(sysRole sysRole);

    int delete(Integer role_id);

    int add(sysRole sysRole);
}
